import java.util.ArrayList;
import java.util.List;

public class StudentManagement {
    private List<Student> students;

    public StudentManagement() {
        students = new ArrayList<>();
    }

    public void addStudent(Student student) {
        students.add(student);
    }

    public static void main(String[] args) {
        StudentManagement management = new StudentManagement();

        management.addStudent(new Student("1001", "张三", "男"));
        management.addStudent(new Student("1002", "莉丝", "女"));
        management.addStudent(new Student("1003", "王武", "男"));

        System.out.println("添加的学员信息：");
        for (Student student : management.students) {
            System.out.println("学号：" + student.getId() + ", 姓名：" + student.getName() + ", 性别：" + student.getSex());
        }
    }
}
